package com.xjzd.spring.converter;

import com.xjzd.aop.DataPermission;
import com.xjzd.aop.InterLayerInfo;
import com.xjzd.spring.validated.User;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestConverter2 {

    @GetMapping("/converter2")
    @DataPermission
    @InterLayerInfo
    public ResponseEntity<Object> test(@RequestParam("q") User user) {
        return ResponseEntity.ok(user);
    }
}
